package com.zxp.javaee.thread;

import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;

/**
 * @author zxp
 * @date 2021/8/13 11:54
 */
@Slf4j
public class MyTask01 implements Runnable{

    private int i;

    public MyTask01(int i) {
        this.i = i;
    }

    @SneakyThrows
    @Override
    public void run() {
        log.debug(Thread.currentThread().getName()+"--"+i);
        Thread.sleep(5000L); // 业务逻辑
    }

    public static void main(String[] args) {

    }

}
